export default {
	state: {
		// 定位位置
		address: '',
		address2: '',
		//选择的位置
		positionText:'',
		selectedAddress:'',
		//选择位置的经纬度
		lat:'',
		lng:'',
		// rangeIndex: 1, //0 同城 1 全国
		rangeObj:{}
	},
	mutations: {
		// 定位位置
		getAddress(state,payload) {
			state.address = payload
		},
		getAddress2(state,payload) {
			state.address2 = payload
		},
		//选择的位置
		positionText(state,payload) {
			state.positionText = payload
		},
		selectedAddress(state,payload){
			state.selectedAddress = payload
		},
		//选择位置的经纬度
		lat(state,payload){
			state.lat = payload
		},
		lng(state,payload){
			state.lng = payload
		},
		// rangeIndex(state,payload){
		// 	state.rangeIndex = payload
		// }
		rangeObj(state,payload ){
			state.rangeObj = payload
		}
	},
	actions: {
		
	},
	getters:{
		// 定位位置
		address(state){
			return state.address
		},
		address2(state){
			return state.address2
		},
		//选择的位置
		positionText(state) {
			return state.positionText
		},
		selectedAddress(state){
			return state.selectedAddress
		},
		//选择位置的经纬度
		lat(state){
			return state.lat
		},
		lng(state){
			return state.lng
		},
		// rangeIndex(state){
		// 	return state.rangeIndex
		// }
		rangeObj(state){
			return state.rangeObj
		}
	}
}